/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.openbravo.bean;

import cn.ekuma.data.dao.bean.I_AutoGeneratorStringKey;
import cn.ekuma.data.dao.bean.I_ModifiedLogBean;
import java.util.Date;

/**
 *
 * @author Administrator
 */
public class Service implements I_ModifiedLogBean<String>,I_AutoGeneratorStringKey{
     /**
	 * 
	 */
	private static final long serialVersionUID = 890931580688031502L;
	private String id;
     private String m_sName;//服务别名
     private String reference;//服务编号

     private String m_sType;//资源类型
     public static String SERVICETYPE_null="n";//无
     public static String SERVICETYPE_user="u";//员工服务
     public static String SERVICETYPE_place="a";//资产-场地
     public static String SERVICETYPE_product="p";//产品

     private String m_sRefId;//资源编号,同资源类型对应的统一资源编号（如
     protected String attSetInst;//商品属性，只在商品模式下有效

     private int rantCycleMultiple;//倍数
     protected String rantCycleStyle;//计租周期
     public static String RANTCYCLESTYLE_everyTime="t";//按次
     public static String RANTCYCLESTYLE_everyMinute="M";//每分钟
     public static String RANTCYCLESTYLE_everyHour="H";//每小时
     public static String RANTCYCLESTYLE_everyDay="d";//每天
     public static String RANTCYCLESTYLE_everyWeek="w";//每周
     public static String RANTCYCLESTYLE_moon="m";//每月
     public static String RANTCYCLESTYLE_year="y";//每年

     protected double cyclePrice;//周期租金
     protected double customerCyclePrice;//会员周期租金

     protected String rantState;//当前状态
     public static String RANTSTATE_noRant="N";//末借
     public static String RANTSTATE_rant="R";//末还
     public static String RANTSTATE_returned="T";//以还
    private Date lastModified;

    private int roundRule;//当计方式
    public static int ROUNDRULE_noRound=0;//取小数位
    public static int ROUNDRULE_roundUp=1;//取小
    public static int ROUNDRULE_roundDown=2;//取大
    public static int ROUNDRULE_round=3;//四舍五入

    private String serviceCalenderId;

    private double m_dCost;//成本
    private String attributeSetId;//属性引用
    private String taxcategoryid;//税引用
    private boolean mutex;//



    public Service() {
        m_sType=SERVICETYPE_product;

        rantState=RANTSTATE_noRant;
        rantCycleStyle=RANTCYCLESTYLE_everyDay;

        cyclePrice=0;
        customerCyclePrice=0;
    }

    public double getCustomerCyclePrice() {
        return customerCyclePrice;
    }

    public void setCustomerCyclePrice(double customerCyclePrice) {
        this.customerCyclePrice = customerCyclePrice;
    }

    public double getCyclePrice() {
        return cyclePrice;
    }

    public void setCyclePrice(double cyclePrice) {
        this.cyclePrice = cyclePrice;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getM_sRefId() {
        return m_sRefId;
    }

    public void setM_sRefId(String m_sRefId) {
        this.m_sRefId = m_sRefId;
    }

    public String getM_sType() {
        return m_sType;
    }

    public void setM_sType(String m_sType) {
        this.m_sType = m_sType;
    }

    public String getRantCycleStyle() {
        return rantCycleStyle;
    }

    public void setRantCycleStyle(String rantCycleStyle) {
        this.rantCycleStyle = rantCycleStyle;
    }

    public String getRantState() {
        return rantState;
    }

    public void setRantState(String rantState) {
        this.rantState = rantState;
    }

    public String getM_sName() {
        return m_sName;
    }

    public void setM_sName(String m_sName) {
        this.m_sName = m_sName;
    }

    public String getKey() {
        return id;
    }

    public Date getLastModified() {
        return lastModified;
    }

    public void setLastModified(Date lastModified) {
        this.lastModified = lastModified;
    }

    public void setKey(String key) {
        this.id=key;
    }

    public String getServiceCalenderId() {
        return serviceCalenderId;
    }

    public void setServiceCalenderId(String serviceCalenderId) {
        this.serviceCalenderId = serviceCalenderId;
    }

    public String getAttSetInst() {
        return attSetInst;
    }

    public void setAttSetInst(String attSetInst) {
        this.attSetInst = attSetInst;
    }

    public String getAttributeSetId() {
        return attributeSetId;
    }

    public void setAttributeSetId(String attributeSetId) {
        this.attributeSetId = attributeSetId;
    }

    public double getM_dCost() {
        return m_dCost;
    }

    public void setM_dCost(double m_dCost) {
        this.m_dCost = m_dCost;
    }

    public String getTaxcategoryid() {
        return taxcategoryid;
    }

    public void setTaxcategoryid(String taxcategoryid) {
        this.taxcategoryid = taxcategoryid;
    }

    public boolean isMutex() {
        return mutex;
    }

    public void setMutex(boolean mutex) {
        this.mutex = mutex;
    }
    
    public String getReference() {
        return reference;
    }

    public void setReference(String reference) {
        this.reference = reference;
    }

    public int getRoundRule() {
        return roundRule;
    }

    public void setRoundRule(int roundRule) {
        this.roundRule = roundRule;
    }

    public int getRantCycleMultiple() {
        return rantCycleMultiple;
    }

    public void setRantCycleMultiple(int rantCycleMultiple) {
        this.rantCycleMultiple = rantCycleMultiple;
    }
}
